<div class="users form">
<?php echo $this->Form->create('User');?>
	<fieldset>
		<legend><?php __('Edit User'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('username');
		echo $this->Form->input('password');
		if($user['user_role']=='admin'){
			echo "Admin?<br>";
			echo $this->Form->checkbox('user_role',array('value'=>'admin','hiddenField'=>false));
		}
		echo $this->Form->input('fname');
		echo $this->Form->input('lname');
		echo $this->Form->input('bdate');
		echo $this->Form->input('email');
		echo $this->Form->input('gsm');
		echo $this->Form->input('address');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>